package com.zlf.sb.demo.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zlf.sb.demo.dto.UserEntityDto;
import com.zlf.sb.demo.entity.UserEntity;

import java.util.List;
import java.util.concurrent.CompletableFuture;

public interface IUserService extends IService<UserEntity> {

    void queryInsertData();

    void cursorQueryInsertData();
    Page<UserEntity> pageList(UserEntityDto userEntityDto);

    CompletableFuture<UserEntity> performSecurityCheckAsync(UserEntity user);

    CompletableFuture<UserEntity> fetchPreferencesAsync(String userId);

    List<UserEntity> findByAgeAndNameContainingAndIdIn(List<Long> ids) ;

}
